﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Maestro_Proveedores.Forms
{
    public partial class ListarEvaluaciones : Form
    {
        public ListarEvaluaciones(string codigo)
        {
            InitializeComponent();
            this.pRV_EVAL_DESMPTableAdapter.FillByCodigo(this.cORPORATIVADataSet.PRV_EVAL_DESMP, codigo);
            this.ShowDialog();
        }

        private void evaluacionesDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            ((FormReport_EvalServicio)herramientas.Redirect.getFormulario("FormReport_EvalServicio")).mostrarReporte(this.evaluacionesDataGridView.SelectedRows[0].Cells["idDataGridViewTextBoxColumn"].Value.ToString());
            this.Cursor = Cursors.Default;
            this.Close();            
        }        
    }
}
